package com.elio.seatademoorder.controller;

import com.elio.seatademoorder.OrderTblService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName : OrderController
 * @Description : 订单服务
 * @Author : zhaowenyi
 * @Date: 2021/08/13
 */
@RestController
public class OrderController {

    @Autowired
    OrderTblService orderTblService;

    @PostMapping("api/order/create")
    public void create(String userId, String commodityCode, int orderCount) {
        orderTblService.create(userId, commodityCode, orderCount);
    }
}
